package com.ruoyi.electricity.mapper;

import com.ruoyi.electricity.domain.ElectricityEquipType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ElectricityEquipTypeMapper {
    void deleteEquipAndEquipTypeAssociation(String equipCode);

    void updateEquipAndEquipTypeAssociation(@Param("equipCode") String equipCode, @Param("equipTypeId") Integer equipTypeId);

    /**
     * 查询设备类型
     */
    ElectricityEquipType selectElectricityEquipTypeById(Integer id);
    /**
     * 查询设备类型列表
     */
    public List<ElectricityEquipType> selectElectricityEquipTypeList(ElectricityEquipType electricityEquipType);

    /**
     * 新增设备类型
     */
    public int insertElectricityEquipType(ElectricityEquipType electricityEquipType);

    /**
     * 修改设备类型
     */
    public int updateElectricityEquipType(ElectricityEquipType electricityEquipType);

    /**
     * 删除设备类型
     */
    public int deleteElectricityEquipTypeById(Integer id);

    /**
     * 批量删除设备类型
     */
    public int deleteElectricityEquipTypeByIds(Integer[] ids);
}
